home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / amivogl-1.03.lzh / vogl / src / sunfort / ftext.c.Z / ftext.c
Encoding:
C/C++ Source or Header  |  1991-06-03  |  1.3 KB  |  145 lines

  1. #include <stdio.h>
  2. #include "vogl.h"
  3.  
  4. /*
  5.  * font_
  6.  */
  7. void
  8. font_(id)
  9.     int    *id;
  10. {
  11.     font(*id);
  12. }
  13.  
  14. /*
  15.  * charst_    (same as charstr_)
  16.  */
  17. charst_(s, len, len2) 
  18.     char    *s;
  19.     int    *len, len2;
  20. {
  21.     charstr_(s, len, len2);
  22. }
  23.  
  24. /*
  25.  * charstr_
  26.  */
  27. charstr_(s, len, len2) 
  28.     char    *s;
  29.     int    *len, len2;
  30. {
  31.  
  32.     /*
  33.      * *len is the user passed length, len2 is the compiler's idea
  34.      * of the length...
  35.      */
  36.         char            buf[BUFSIZ];
  37.     register char   *p;
  38.  
  39.     strncpy(buf, s, *len);
  40.     buf[*len] = 0;
  41.  
  42.     for (p = &buf[*len - 1]; *p == ' '; p--)
  43.         ;
  44.  
  45.     *++p = 0;
  46.  
  47.     charstr(buf);
  48. }
  49.  
  50. /*
  51.  * cmov_
  52.  */
  53. void
  54. cmov_(x, y, z)
  55.     float    *x, *y, *z;
  56. {
  57.     cmov(*x, *y, *z);
  58. }
  59.  
  60. /*
  61.  * cmovs_
  62.  */
  63. void
  64. cmovs_(x, y, z)
  65.     short    *x, *y, *z;
  66. {
  67.     cmov((float)*x, (float)*y, (float)*z);
  68. }
  69.  
  70. /*
  71.  * cmovi_
  72.  */
  73. void
  74. cmovi_(x, y, z)
  75.     int    *x, *y, *z;
  76. {
  77.     cmov((float)*x, (float)*y, (float)*z);
  78. }
  79.  
  80. /*
  81.  * cmov2_
  82.  */
  83. void
  84. cmov2_(x, y)
  85.     float    *x, *y;
  86. {
  87.     cmov(*x, *y, 0.0);
  88. }
  89.  
  90. /*
  91.  * cmov2s_
  92.  */
  93. void
  94. cmov2s_(x, y)
  95.     short    *x, *y;
  96. {
  97.     cmov((float)*x, (float)*y, 0.0);
  98. }
  99.  
  100. /*
  101.  * cmov2i_
  102.  */
  103. void
  104. cmov2i_(x, y)
  105.     int    *x, *y;
  106. {
  107.     cmov((float)*x, (float)*y, 0.0);
  108. }
  109.  
  110. /*
  111.  * getwidth_
  112.  */
  113. int
  114. getwidth_()
  115. {
  116.     return((int)getwidth());
  117. }
  118.  
  119. /*
  120.  * getwid_
  121.  */
  122. int
  123. getwid_()
  124. {
  125.     return((int)getwidth());
  126. }
  127.  
  128. /*
  129.  * getheight_
  130.  */
  131. int
  132. getheight_()
  133. {
  134.     return((int)getheight());
  135. }
  136.  
  137. /*
  138.  * gethei_
  139.  */
  140. int
  141. gethei_()
  142. {
  143.     return((int)getheight());
  144. }
  145.